const post = async (ctx) => {
    const body = JSON.parse(ctx.request.body);
    if (!body.name) ctx.throw(400, '.name required');
    ctx.body = { name: body.name };
}
post.method = 'post'
module.exports = post